package com.fanbuchi.fukua.validate;

import android.text.TextUtils;
import android.util.SparseArray;

import com.fanbuchi.fukua.entity.OauthEntity;
import com.fanbuchi.fukua.entity.UserEntity;

/**
 * Created by Administrator on 2015/10/23.
 */
public class ProfileValidate implements ValidateValue {
    /**
     * @title
     * @param oauth
     * @return
     */
    public static SparseArray<String> getProfileValidate(OauthEntity oauth){
        SparseArray<String> _result= new SparseArray<>();
        if (oauth==null){
            _result.put(userName_notNull_code,userName_notNull_desc);
        }else if (TextUtils.isEmpty(oauth.getUserName())){
            _result.put(userName_notNull_code,userName_notNull_desc);
        }
        return _result;
    }
}
